package com.key.mapper;//package com.key.mapper;

import com.key.common.vo.DepartmentAndCompanyVO;
import com.key.entity.Company;
import com.key.entity.Department;

import java.util.List;

/**
 * @Author：朕
 * @Package：com.key.mapper
 * @Project：ams_system
 * @name：OrganizationalStructureMapper
 * @Date：2023/2/22 16:33
 * @Filename：OrganizationalStructureMapper*/
public interface OrganizationalStructureMapper {

    //显示公司
    List<Company> findCompany();

    //增加公司
    boolean addCompany(Company company);

    //删除公司
    boolean deleteCompany(int id);

    //根据公司Id查询公司信息
    List<Company> findCompanyById(int id);

    //修改公司信息
    boolean updateCompany(Company company);

    //显示部门信息
    List<Department> findDepartment();

    //增加部门
    boolean addDepartment(Department department);

    //删除部门信息
    boolean deleteDepartment(int id);

    //根据部门Id查找部门信息
    List<Department> findDepartmentById(int id);

    //修改部门信息
    boolean updateDepartment(Department department);

    //显示公司和对应的部门
    List<DepartmentAndCompanyVO> findCompanyAndDepartment();

}
